dy-lib=libmymath.so #动态库的后缀名是.so

$(dy-lib):Add.o Sub.o Mul.o Div.o
	gcc -shared -o $@ $^
%.o:%.c
	gcc -fPIC -c $<

.PHONY:output
output:
	mkdir -p mymath_dylib/include
	mkdir -p mymath_dylib/lib
	cp -f *.h mymath_dylib/include
	cp -f *.so mymath_dylib/lib

.PHONY:clean
clean:
	rm -f *.o *.so mymath_dylib
